<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>日期卡片</title>
    <style>
        body {
            font-family: 'Arial', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #e0e5ec;
            margin: 0;
        }
        
        .weather-icon {
            font-size: 48px;
            margin: 10px 0;
        }
        
        .card {
            width: 300px;
            padding: 30px;
            border-radius: 20px;
            background: #e0e5ec;
            box-shadow: 8px 8px 15px #a3b1c6, 
                        -8px -8px 15px #ffffff;
            text-align: center;
        }
        
        .card h2 {
            color: #4d4d4d;
            margin-bottom: 20px;
        }
        
        .date-display {
            font-size: 24px;
            color: #666;
            padding: 15px;
            border-radius: 10px;
            background: #e0e5ec;
            box-shadow: inset 5px 5px 10px #a3b1c6, 
                        inset -5px -5px 10px #ffffff;
        }
    </style>
</head>
<body>
    <div class="card">
        <h2>今天是</h2>
        <div class="date-display" id="currentDate"></div>
        
        <div class="weather-info">
            <div class="weather-icon" id="weatherIcon">☀️</div>
            <div class="weather-display" id="weatherDisplay">加载中...</div>
        </div>
    </div>

    <script>
        function updateDate() {
            const now = new Date();
            const options = { year: 'numeric', month: 'long', day: 'numeric', weekday: 'long' };
            document.getElementById('currentDate').textContent = now.toLocaleDateString('zh-CN', options);
        }
        
        updateDate();
        
        // 模拟天气数据获取
        function updateWeather() {
            const weatherConditions = [
                {icon: '☀️', text: '晴天 25°C'},
                {icon: '⛅', text: '多云 22°C'},
                {icon: '🌧️', text: '小雨 18°C'},
                {icon: '🌩️', text: '雷阵雨 20°C'},
                {icon: '❄️', text: '雪 -2°C'}
            ];
            
            const randomWeather = weatherConditions[Math.floor(Math.random() * weatherConditions.length)];
            document.getElementById('weatherIcon').textContent = randomWeather.icon;
            document.getElementById('weatherDisplay').textContent = randomWeather.text;
        }
        
        updateWeather();
    </script>
</body>
</html>